package org.banyan.senior.idempotent.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author metalsbanyan
 * @version 1.0
 * @description: 防止重复点击
 * @date 2023/7/21 17:07
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface AutoDuplicateRequest {

    /**
     * 过期时间，单位毫秒
     */
    long expiredTime() default -1;

}
